package hcn.protocol.brandnew.dengji.jianchayuyue;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;


/**
 * 检查项目指定日期的可预约时间查询-响应消息（成功） - ODS_02070009_SUC
 * 医共体模型有误,该模型手动维护
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class QueryAppointTimeResponse {

    @XmlElement(name = "Item")
    private Item item;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Item {
        /**
         * 检查申请单号
         */
        @XmlElement(name = "RequestId")
        private String requestId;
        /**
         * 检查项目代码
         */
        @XmlElement(name = "ItemCode")
        private String itemCode;
        /**
         * 检查项目名称
         */
        @XmlElement(name = "ItemName")
        private String itemName;
        /**
         * 号源日期
         */
        @XmlElement(name = "AppointsDate")
        private String appointDate;
        /**
         * 预约队列
         */
        @XmlElement(name = "AppointsQueue")
        private String appointsQueue;
        /**
         * 预约名称
         */
        @XmlElement(name = "AppointsQueueName")
        private String appointsQueueName;

        @XmlElement(name = "Time")
        private List<AppointTime> appointTimes;

    }

    @XmlAccessorType(XmlAccessType.FIELD)
    @Data
    public static class AppointTime {
        /**
         * 预约队列
         */
        @XmlElement(name = "AppointsQueue")
        private String appointsQueue;
        /**
         * 预约日期yyyymmdd
         */
        @XmlElement(name = "AppointsDate")
        private String appointsDate;
        /**
         * 预约名称
         */
        @XmlElement(name = "AppointsQueueName")
        private String appointsQueueName;

        /**
         * 号源开始时间HHMMSS
         */
        @XmlElement(name = "AppointsStartTime")
        private String appointsStartTime;
        /**
         * 号源结束时间HHMMSS
         */
        @XmlElement(name = "AppointsEndTime")
        private String appointsEndTime;
        /**
         * 号源总数
         */
        @XmlElement(name = "TotalNumberCount")
        private String totalNumberCount;
        /**
         * 号源剩余数量
         */
        @XmlElement(name = "RemainNumberCount")
        private String remainNumberCount ;
        /**
         * 默认标志
         */
        @XmlElement(name = "DefaultFlag")
        private String defaultFlag;
    }

}
